// https://min.erkantv.cn:443/han/hanJuji

import {
	request
} from "@/utils/request.js";


// 我的收藏
export function collectionCollent(userId) {
	return request({
		url: '/collectionCllect/all',
		data: {
			userId: userId
		}
	});

}
// 取消收藏
export function CollentDelete(userId, videoId) {
	return request({
		url: '/collectionCllect/delete',
		data: {
			userId: userId,
			videoId: videoId
		}
	});

}

// 观看记录
export function collectionWath(page, userId) {
	return request({
		url: '/collectionWatch/all',
		data: {
			pageNum: page,
			pageSize: 24,
			userId: userId
		}
	});

}


//  观看记录删除
export function watchDelete(userId, videoId) {
	return request({
		url: '/collectionWatch/delete',
		data: {
			userId: userId,
			videoId: videoId
		}
	});

}


// 推荐内容
export function RecommendWath(pageNum, userId) {
	return request({
		url: '/collectionRecommend/all',
		data: {
			pageNum: pageNum,
			pageSize: 24,
			userId: userId
		}
	});

}


//  推荐记录删除
export function RecommendDelete(userId, videoId) {
	return request({
		url: '/collectionRecommend/delete',
		data: {
			userId: userId,
			videoId: videoId
		}
	});

}

//  查询提现记录
export function UserMoney(url, userId) {
	return request({
		url: url,
		data: {
			userId: userId
		}
	});

}

// 进行提现
export function UserMoneyEnter(userId, money, channel) {
	return request({
		url: '/openId/money',
		data: {
			userId: userId,
			money: money,
			close: false,
			channel: channel
		}
	});

}